@import '../scss/reset';

html {
    font-size: 0.1333vw;
    .body {
        background-image: url(../image/bg.jpg);
        background-size: 100% 100%;
        background-repeat: no-repeat;
        padding: 30rem 0 0 0;
        @media (min-width: 666px) {
            background-size: cover;
        }
        header {
            width: 750rem;
            padding: 0 0 138rem 0;
            .logo {
                width: 576rem;
                margin: 0 auto;
                text-align: center;
                img {
                    width: 221rem;
                    height: 194rem;
                }
            }
        }
        section {
            width: 576rem;
            margin: 0 auto;
            div {
                form {
                    .container {
                        margin-bottom: 50rem;
                        position: relative;
                        label {
                            display: block;
                            font-size: 26rem;
                            color: #434242;
                            font-weight: bold;
                            padding: 0 0 0 40rem;
                            width: 100%;
                            height: 76rem;
                            line-height: 76rem;
                            border-radius: 38rem;
                            background-color: rgba($color: #ffffff, $alpha: 0.5);
                            input {
                                line-height: 76rem;
                                font-size: 26rem;
                                width: 440rem;
                                border: none;
                                background-color: rgba($color: #000000, $alpha: 0);
                            }
                            input:focus {
                                outline: none;
                            }
                        }
                        .userIdentity-1 {
                            input {      
                                width: 360rem;
                            }
                        }
                        span {
                            opacity: 0;
                            position: absolute;
                            // bottom: -76rem;
                            left: 40rem;
                            font-size: 28rem;
                        }
                    }
                    // 表单验证成功了的样式
                    .container.succeed {
                        label {
                            border: 5rem solid green;
                        }
                    }
                    // 表单验证失败了的样式
                    .container.error {
                        label {
                            border-color: red;
                        }
                        span {
                            opacity: 1;
                            color: red;
                        }
                    }
                    .btn {
                        padding-top: 28rem;
                        display: flex;
                        justify-content: space-between;
                        button {
                            font-size: 28rem;
                            font-weight: bold;
                            color: #0075c1;
                            width: 245rem;
                            height: 76rem;
                            line-height: 76rem;
                            background-color: rgba($color: hsl(0, 0%, 100%), $alpha: 0.7);
                            border-radius: 38rem;
                            border-style: none;
                        }
                    }
                }
            }
        }
        // 点击预约的蒙版
        .masking {
            width: 750rem;
            height: 100vh;
            position: fixed;
            top: 0;
            background-color: rgba($color: #000000, $alpha: 0.2);
            display: none;
            div {
                position: relative;
                transform: translateY(-50%);
                top: 50%;
                opacity: 0;
                width: 400rem;
                height: 200rem;
                margin: 0 auto;
                line-height: 200rem;
                font-size: 28rem;
                text-align: center;
                color: #ffffff;
                border-radius: 10rem;
                box-shadow: 0 0 10rem 5rem #434242;
                background-color: rgba($color: #ff0000, $alpha: 0.5);
                // 关闭错误提示按钮
                span {
                    width: 50rem;
                    height: 50rem;
                    line-height: 50rem;
                    font-size: 20rem;
                    position: absolute;
                    top: 0;
                    right: 0;
                    color: black;
                }
            }
            // 加载动画
            @keyframes load {
                0%,
                100% {
                    height: 30rem;
                }

                50% {
                    height: 100rem;
                }
            }
            ul {
                width: 200rem;
                height: 100rem;
                opacity: 0;
                margin: 0 auto;
                display: flex;
                justify-content: space-evenly;
                align-items: flex-end;
                li {
                    width: 30rem;
                    height: 30rem;
                    background-color: #00ff95;
                    animation: load 0.5s linear infinite;
                }
                :first-child {
                    animation-delay: 0s;
                }
                :nth-child(2) {
                    animation-delay: 0.2s;
                }
                :nth-child(3) {
                    animation-delay: 0.4s;
                }
                :nth-child(4) {
                    animation-delay: 0.6s;
                }
                :last-child {
                    animation-delay: 0.8s;
                }
            }
        }
        // 预约失败的提示
        .mistake {
            display: block;
            div {
                opacity: 1;
            }
        }
        // 预约加载中的动画
        .loading {
            display: block;
            ul {
                opacity: 1;
            }
        }
    }
}
